@import "../base/color.scss";
@import "../base/mixin.scss";

.top-info {
    position: relative;
    flex: 0 0 50px;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 10px 10px;
    box-sizing: border-box;
    background-color: $white_1;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.03);
    .query-input {
        width: 255px;
        padding-left: 25px;
        max-width: 25vw;
        font-size: 12px;
        & /deep/ .el-input__inner {
            box-sizing: border-box;
            border-radius: 4px;
            padding-left: 15px;
            padding-right: 30px;
            font-size: 12px;
            &:not(:hover) {
                border-color: #dddddd;
            }
        }
        & /deep/ .el-input__icon {
            font-size: 14px;
            cursor: pointer;
            color: #dddddd;
            &:hover {
                color: #409eff;
            }
        }
    }
    .org-info {
        height: 100%;
        display: flex;
        align-items: center;
        .org-info__popover {
            width: 239px;
            height: 207px;
        }
        .org-info__icon {
            font-size: 19px;
            margin: 0 0 0 20px;
            &:hover {
                color: #336cfb;
            }
        }
        .org-info__line {
            width: 1px;
            height: 18px;
            background-color: #d2d2d2;
        }
        .org-info__workspace {
            font-size: 16px;
            line-height: 16px;
            color: #330000;
            margin-left: 16px;
        }
    }
    .top-info-menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        height: 100%;
        .top-info-menu-item {
            height: 100%;
            display: flex;
            align-items: center;
            transition: all 0.1s;
            border-bottom: 2px solid rgba(51, 112, 255, 0);
            &.active {
                font-weight: 600;
                color: rgba(51, 108, 251, 1);
                border-bottom: 2px solid rgba(51, 112, 255, 1);
            }
            a {
                color: inherit;
                line-height: 49px;
            }
        }
        .top-info-menu-item + .top-info-menu-item {
            margin-left: 40px;
        }
    }

    .user-info {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        color: $black_2;
        .msg {
            display: inline-block;
            margin-right: 20px;
            .msg__button {
                height: 30px;
                background: rgba(235, 240, 255, 1);
                border-radius: 2px;
                color: rgba(62, 112, 255, 1);
                border: none;
            }
        }
        .notify {
            width: 45px;
            display: inline-block;
            position: relative;
            .notify__icon {
                // color: #ffffff;
                font-size: 20px;
                &:hover {
                    color: #336cfb;
                }
            }
            .new {
                position: absolute;
                top: -4px;
                right: 1px;
                font-size: 12px;
                width: 32px;
                height: 13px;
                background: #ff4141;
                border-radius: 6px;
                color: white;
                line-height: 1;
                text-align: center;
            }
        }
        .user-info__search {
            flex: 0 0 200px;
        }
        .user-info__publish,
        .user-info__custom {
            flex: 0 0 60px;
            width: 60px;
            margin-right: 4px;
            margin-left: 20px;
            color: $black_2;
            &:hover {
                color: $blue_1;
            }
        }
        .user-info__help,
        .user-info__select {
            font-size: 22px;
            color: #666666;
            vertical-align: bottom;
            &:hover {
                color: $blue;
            }
        }
        .user-info__avatar {
            flex: 0 0 30px;
            height: 30px;
            line-height: 30px;
            margin-left: 30px;
            margin-right: 10px;
            border-radius: 50%;
            color: $white_1;
            font-size: 10px;
            overflow: hidden;
        }
    }
}
